startIntentSenderForResult

open fun startIntentSenderForResult(@NonNull activity: Activity, @NonNull intent: IntentSender, requestCode: Int, @Nullable fillInIntent: Intent, flagsMask: Int, flagsValues: Int, extraFlags: Int, @Nullable options: Bundle)(source)

Start new IntentSender with options, if able, for which you would like a result when it finished.

In Android 4.1+ additional options were introduced to allow for more control on activity launch animations. Applications can use this method along with ActivityOptionsCompat to use these animations when available. When run on versions of the platform where this feature does not exist the activity will be launched normally.

Parameters

activity

Origin activity to launch from.

intent

The IntentSender to launch.

requestCode

If >= 0, this code will be returned in onActivityResult() when the activity exits.

fillInIntent

If non-null, this will be provided as the intent parameter to sendIntent.

flagsMask

Intent flags in the original IntentSender that you would like to change.

flagsValues

Desired values for any bits set in flagsMask

extraFlags

Always set to 0.

options

Additional options for how the Activity should be started. May be null if there are no options. See ActivityOptionsCompat for how to build the Bundle supplied here; there are no supported definitions for building it manually.